package com.pignest.hotel.beans;

import com.pignest.hotel.annotation.Bean;
import com.pignest.hotel.beans.global.BaseBean;

/**
 * MemberPrice entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Bean("会员房价")
public class MemberPrice extends BaseBean {
	private static final long serialVersionUID = -3910918955864854351L;
	
	private RoomType roomType;
	private MemberLevel memberLevel;
	private int price;

	// Constructors

	/** default constructor */
	public MemberPrice() {
	}

	/** minimal constructor */
	public MemberPrice(String id) {
		this.id = id;
	}

	/** full constructor */
	public MemberPrice(String id, RoomType roomType,
			MemberLevel memberLevel, int price) {
		this.id = id;
		this.roomType = roomType;
		this.memberLevel = memberLevel;
		this.price = price;
	}

	// Property accessors

	public RoomType getRoomType() {
		return roomType;
	}

	public void setRoomType(RoomType roomType) {
		this.roomType = roomType;
	}

	public MemberLevel getMemberLevel() {
		return this.memberLevel;
	}

	public void setMemberLevel(MemberLevel memberLevel) {
		this.memberLevel = memberLevel;
	}

	public int getPrice() {
		return this.price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	@Override
	public String toSimpleString() {
		return concat(roomType.getName(), memberLevel.getMemberlevel(), String.valueOf(price));
	}
}